/*
 * @ProjectName: 编程学习
 * @Copyright:   2019 HangZhou Yi Dev, Ltd. All Right Reserved.
 * @address:     https://yiyuery.github.io/
 * @date:        2019/5/20 20:57
 * @email:       xiazhaoyang@live.com
 * @description: 本内容仅限于编程技术学习使用，转发请注明出处.
 */
package com.example.component.gallery.core.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * <p>
 *
 * </p>
 *
 * @author Yi
 * @version v1.0.0
 * @date 2019-07-21 11:20
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify By: {修改人} 2019-07-21
 * @modify reason: {方法名}:{原因}
 * ...
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name="tb_image_storage")
public class ImageStorage {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long imageId;
    /**
     * 图片相对地址
     */
    private String imageUrl;
    /**
     * 图片名称
     */
    private String imageName;

    /**
     * 图片描述[模糊搜索]
     */
    private String imageDescription;

    /**
     * 图片本地缓存
     */
    private String localPath;

    /**
     * 压缩级别(0：不压缩; 1:1200x800)
     */
    private Integer compression;


}
